<template>
  <div class="container">
    <div
      class="type"
      :style="`background-image: url(${require('@/assets/img/icon-rent-out.png')})`"
       @click="$router.push('/productFormRentOut/publishType')"
    >
      <div class="type-text">出租</div>
    </div>
    <div
      class="type"
      :style="`background-image: url(${require('@/assets/img/icon-sell.png')})`"
      @click="$router.push('/productFormSell/publishType')"
    >
      <div class="type-text">出售</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "publishType",

  data() {
    return {
      // state
    };
  },

  methods: {
    // method
  },
};
</script>

<style lang="scss" scoped>
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1200px;
  margin: 0 auto 30px;
  background: #fff;
  height: 500px;
}
.type {
  width: 521px;
  height: 194px;
  background-size: 100% 100%;
  cursor: pointer;

  .type-text {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    padding-left: 48px;
    font-weight: bold;
    font-size: 26px;
    color: #ffffff;
  }
}
</style>
